import axios from './index'
export const admin = (params) => {
   return axios.request({
      url:'/api/platform/datalist',
      method:'post',
      data:params
   })
}
export const list = () => {
 return axios.request({
    url: '/api/platform/vuerouter?uniflag=Home&show=0',
 })
}
export const menulist = (params) =>{
   return axios.request({
      url:'/api/platform/entitytree',
      method:'post',
      data:params
   })
}

export const entitylist = (params) =>{
   return axios.request({
      url:'/api/platform/entitylist',
      method:'post',
      data:params
   })
}

export const saveObject = (params) =>{
   return axios.request({
      url:'/api/platform/ctrlmthdcaller?typeid=objectoperator&mthdname=saveObject',
      method:'post',
      data:params
   })
}

export const saveObjects = (params) =>{
   return axios.request({
      url:'/api/platform/ctrlmthdcaller?typeid=objectoperator&mthdname=saveObjects',
      method:'post',
      data:params
   })
}

export const deleteObject = (params) =>{
   return axios.request({
      url:'/api/platform/ctrlmthdcaller?typeid=objectoperator&mthdname=deleteObject',
      method:'post',
      data:params
   })
}